home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
a_utils
/
perl
/
dosperl.zoo
/
readme.1st
< prev
next >
Wrap
Text File
|
1991-08-18
|
2KB
|
54 lines
This is a compiled version of perl with gdbm. There is all the reason
in the world to get to complete sources and the various perl-scripts,
but for those how doesn't bother I've included perldb.pl.
Put it in \usr\local\lib\perl\perldb.pl. Also included is a compiled
version of gdbm.lib.
This is how I build perl 4.010 with gdbm 1.4 for MS-LOSS:
1) Got hold of perl-4.010 in compressed tar, and converted to zoo on a
unix host.
2) While at it, ran yacc -d perly.y and got y.tab.c and y.tab.h.
3) As described in README.msdos copied all files from the msdos directory
to the parent dir. eg. xcopy msdos. Copied suffix.c from the os2 dir.
to the parent dir.
4) Build the gdbm 1.4 library for msdos.
5) Changed /*I_GDBM ... in config.h to:
#define I_GDBM 1
#define HAS_GDBM 1
Changed DBM_CACHE_MAX from 63 to 16 in hash.h. (We lack memory)
put a pair of #ifndef MSDOS, #endif around
extern char **environ;
6) Compiled & linked: (using Microsoft C v.5.10)
cl -c -AL -Ox array.c chdir.c cmd.c cons.c consarg.c director.c
cl -c -AL -Ox doio.c dump.c eval.c form.c suffix.c usersub.c
cl -c -AL -Ox hash.c msdos.c perl.c perly.c popen.c regcomp.c
cl -c -AL -Ox regexec.c stab.c str.c toke.c usage.c util.c
cl -c -AL -Od doarg.c dolist.c
cl -o perl *.obj \msc\lib\setargv.obj ..\gdbm-1.4\gdbm.lib -F 4000 -link /noe
Hints:
Perl in batch files.
Easy. Start the batch file with:
@perl -x %0.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
@exit (May not work for some versions of dos, try goto instead.)
#!perl
... and perl code follows
You can use pipes for real data, by using the binmode call, but if the
program was started as a batch file, you'll some extra cr/lf.
That's all folks
- Tommy Thorn (tthorn@daimi.aau.dk) 19.08.91